package me.qi.kancha.dto.core;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import me.qi.kancha.dto.base.BaseDTO;
import me.qi.kancha.dto.enums.DictionaryType;

import java.io.Serializable;

/**
 * 字典
 * @author qi
 * @date 2022-10-27 04:09:20
 * @TableName dictionary
 */
@TableName(value ="dictionary")
@Data
public class DictionaryDTO extends BaseDTO implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 删除标记
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Integer deleted;

    /**
     * 编号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 父级编号
     */
    @TableField(value = "parent")
    private String parent;

    /**
     * 类型
     */
    @TableField(value = "type")
    private DictionaryType type;

    /**
     * 值
     */
    @TableField(value = "value")
    private String value;

}